package com.anjubao.parking.municipal.basezone.feign;

import com.anjubao.parking.municipal.basezone.dto.DefaultCityResDto;
import com.anjubao.parking.municipal.basezone.dto.DistrictsResDto;
import com.anjubao.parking.municipal.common.dto.ApiResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author anjubao
 */
public interface BaseZoneFeginService {

    /**
     * 获取区域数据
     * @param cityId 城市Id
     * @return
     */
    @GetMapping("/base-zone/districts")
    ApiResult<List<DistrictsResDto>> getDistricts(@RequestParam("cityId")  int cityId);

    /**
     * 获取默认城市信息
     * @return
     */
    @GetMapping("/base-zone/default-city")
    ApiResult<DefaultCityResDto> getDefaultCity();
}
